package ${entity.entityPackageName};

import com.etcn.common.pojo.BaseEntity;
<#if entity.hasSetType>
import java.util.Set;
</#if>
<#if entity.hasDateType>
import java.util.Date;
</#if>
<#if entity.hasDecimalType>
import java.math.BigDecimal;
</#if>

/**
 * ${entity.classDesc}entity
 * @author ${entity.author}
 * @date ${entity.createTime}
 */
public class ${entity.className} extends BaseEntity<${entity.className}> {

    private static final long serialVersionUID = 1L;
    
    /**
	 * 主键
	 */
    private ${entity.idSimpleType} ${entity.idName};

<#list entity.propList as prop>
    <#if prop.propName != "isDeleted">
    /**
	 * ${prop.note}
	 */
    private ${prop.simpleType} ${prop.propName};

    </#if>
</#list>
	public ${entity.className}() {
	}
	
    public ${entity.idSimpleType} ${entity.idGetMethod}() {
       	return ${entity.idName};
    }

    public void ${entity.idSetMethod}(${entity.idSimpleType} ${entity.idName}) {
        this.${entity.idName} = ${entity.idName};
    }
    
<#list entity.propList as prop>
	<#if prop.propName != "isDeleted">
    public ${prop.simpleType} ${prop.getMethod}() {
        return ${prop.propName};
    }
    
    public void ${prop.setMethod}(${prop.simpleType} ${prop.propName}) {
        this.${prop.propName} = ${prop.propName};
    }

	</#if>
</#list>

    //@NotReplaceableStart
    //--------write the not replaceable code between-------------



    //--------write the not replaceable code between-------------
    //@NotReplaceableEnd
}
